package com.xyy.saas.payment.common.core;


import org.springframework.stereotype.Service;
import util.AESUtil;

/**
 * AES服务
 * @date 20200330
 * @author dake
 */
@Service("01")
public class AesEncryptServiceImpl implements EncryptService {
    @Override
    public String encrypt(String content, String encryptKey) throws Exception {
        return AESUtil.encrypt(content, encryptKey);
    }

    @Override
    public String decrypt(String content, String encryptKey) throws Exception {
        return AESUtil.decrypt(content, encryptKey);
    }
}
